1 // Fig. 11.8: fig11_08.cpp 2 // Printing the address stored in a char* variable 3 #include 4 5 int main() 6 { 7 char *string = "test"; 8 9 cout << "Value of string is: " << string 10 << "\nValue of static_cast< void *>( string ) is: " 11 << static_cast< void *>( string ) << endl; 12 return 0; 13 }